//
//  UIImage+Ex.swift
//  Pods
//
//  Created by Rdxer on 2017/8/15.
//
//

import UIKit


public extension UIImage{
    func toIcon() -> UIImage{
        return self.withRenderingMode(.alwaysTemplate)
    }
    func toOriginal() -> UIImage{
        return self.withRenderingMode(.alwaysOriginal)
    }
}
